package com.zxgllhh.run;

import java.util.List;

import com.zxgllhh.domain.Field;
import com.zxgllhh.domain.Table;

/**
 * 
 * @author Zhao,XingGuo
 *
 */
public class Check {
	
	public static void p(List<Table> tableList){
		Table t = tableList.get(0);
		if(null == t.getFieldList().get(0).getRealRemarks() || t.getFieldList().get(0).getRealRemarks().length() < 0){
			System.err.println("*******************数据库没有添加注释或者提取注释失败！***********************");
		}
		int i = 1;
		System.out.println();
		System.out.println("***************"+tableList.size()+"****************");
		for(Table table : tableList){
			System.out.println("**************"+(i++)+"******************");
			System.out.println(table.getTableName());
			List<Field> fieldList = table.getFieldList();
			for(Field field : fieldList){
				System.out.println(field.getCulumnName());
				System.out.println(field.getDatatype());
			}
		}
	}

}
